package com.ww.yaodao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ww.yaodao.model.bo.SaleDO;
import com.ww.yaodao.model.dto.SaleProductDTO;
import com.ww.yaodao.model.vo.ProductVO;
import com.ww.yaodao.model.vo.sale.SaleVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author wanziyan
 * @Date 2023-04-14:31
 */
@Repository
public interface SaleMapper extends BaseMapper<SaleDO> {
    @Select("select * from tb_sale s join tb_product p on s.pid = p.pid ")
    List<SaleProductDTO> saleAndProduct();
}
